package com.kobe.algorithm.niue.szdd;

import java.util.Scanner;

/**
 * @author ：caopengfei
 * @date ：2021/5/9
 */
public class Main {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        String abc = scanner.nextLine();
        StringBuilder stringBuilder = new StringBuilder();

        for (int i = abc.length() -1; i >= 0 ; i--) {
            stringBuilder.append(abc.charAt(i));
        }
        System.out.println(stringBuilder.toString());
    }


}
